<?php
/*
 * Created on 2011-2-23
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 $DIR = dirname(__FILE__) . '/files/';
 require_once ('function/FileAction.php');
 $file = $DIR ."test2.txt";
 
 $zip = new FileAction();
 $desc = $DIR . "test_". uniqid() . '.zip';
 $result = $zip->create_zip($file,$desc);
 var_dump($result); 
 
?>
